package com.gy.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

//自定义异常.传入对应异常信息即可
@EqualsAndHashCode(callSuper = true)
@Data
public final class CommonException extends RuntimeException {
    private final CommonExceptionType commonExceptionType;

    public CommonException(CommonExceptionType commonExceptionType) {
        this.commonExceptionType = commonExceptionType;
    }
}
